import request from '@/utils/request'

// 查询监控项默认规则列表
export function listCompoint(query) {
  return request({
    url: '/system/compoint/list',
    method: 'get',
    params: query
  })
}

// 查询监控项列表
export function listPoint() {
  return request({
    url: '/system/point/list',
    method: 'get'
  })
}

// 查询监控项默认规则详细
export function getCompoint(id) {
  return request({
    url: '/system/compoint/' + id,
    method: 'get'
  })
}

// 新增监控项默认规则
export function addCompoint(data) {
  return request({
    url: '/system/compoint',
    method: 'post',
    data: data
  })
}

// 修改监控项默认规则
export function updateCompoint(data) {
  return request({
    url: '/system/compoint',
    method: 'put',
    data: data
  })
}

// 删除监控项默认规则
export function delCompoint(id) {
  return request({
    url: '/system/compoint/' + id,
    method: 'delete'
  })
}
